import { AlgoTypeEnum } from "@/constants/other-keys"

export interface EvalBaseInfo {
  eval_model_id: string | undefined
  /** 评估模型名称 */
  eval_model_name: string
  /** 评估模型类型 */
  eval_model_type?: AlgoTypeEnum
  /** 评估模型描述 */
  eval_model_describe: string
  /** 评估模型文件路径 */
  eval_model_path: string
}

export interface TableRequestData {
  /** 评估模型名称 */
  eval_model_name?: string
  eval_model_type: AlgoTypeEnum
  /** 发布时间 */
  publish_time?: string
  /** 截至时间 */
  end_time?: string
}

export interface PageTableRequestData extends TableRequestData {
  /** 当前页码 */
  current_page: number
  /** 查询条数 */
  size?: number
}

export interface TableData {
  create_user: {
    user_id: string
    user_name: string
    user_position: string
  }
  create_time: string
}

export interface EvalTableData extends EvalBaseInfo, TableData {}
export type SearchEvalTableResponseData = ApiResponseData<{
  total_pages: number
  total_count: number
  page_info: EvalTableData[]
}>
export type EvalInfoResponseData = ApiResponseData<EvalBaseInfo>
export type EvalListResponseData = ApiResponseData<EvalTableData[]>
